package util_math

func CaclRate(totalChargePlayerCount int, totalRoleCount int) float32 {
	if totalRoleCount == 0 {
		return 0
	}
	if totalRoleCount > 0 {
		return float32(totalChargePlayerCount) / float32(totalRoleCount)
	}
	return float32(0)
}
